for (x = 0; x < document.head.getElementsByTagName('link').length; x++) {
    if (document.head.getElementsByTagName('link')[x].rel == ('webfinger')) {
        chrome.extension.sendRequest({webfinger:document.head.getElementsByTagName('link')[x].href}, function(response) {});
        break;
    }
} 
